<?php
/**
 * all config values go in this array, which will be returned at the end of
 * this script. vendor configs should modify this array directly.
 */
$config = array();

/**
 * system directory
 */
$system = dirname(__FILE__);
$config['Solar']['system'] = $system;

/**
 * default configs for each vendor
 */
include "$system/source/solar/config/default.php";
/**
 * project overrides
 */
// locale string 
$config['Solar_Locale'] = array('code' => 'zh_CN'); // en_US

// filter classes 
$config['Solar_Filter'] = array(
    'classes' => array('Admin_Filter'),
);

// helper classes
$config['Solar_View']['helper_class'] = array('Admin_App_Helper');

// front controller
$config['Solar_Controller_Front'] = array(
    'classes' => array('Home_App', 'Member_App', 'Admin_App'), // Home作主页，Member作个人中心
    'disable' => array(),
    'default' => 'home',
    'rewrite' => array(),
    'routing' => array(),
    'explain' => true,
);

// model catalog
$config['Solar_Sql_Model_Catalog']['classes'] = array('Admin_Model');

// model adapter
$config['Solar_Sql']['adapter'] = 'Solar_Sql_Adapter_Mysql';

// mysql config
$config['Solar_Sql_Adapter_Mysql'] = array(
    'host'      => 'localhost', // the database server host
    'name'      => 'zhanwei',  // the database name
    'user'      => 'root',  // authenticate as this user
    'pass'      => 'life',  // authenticate with this password
    'charset'   => 'utf8',
);

// helper classes
$config['Solar_View']['helper_class'] = array('Admin_App_Helper');

/*$config['Solar_Access'] = array(*/
    //'adapter'    => 'Solar_Access_Adapter_Sql',
/*);*/
/*$config['Solar_Access_Adapter_Sql'] = array(*/
    //'sql'			=> 'sql',
    //'table' 		=> 'accesses',
    //'class_col' 	=> 'class_name',
    //'action_col' 	=> 'action_name',
    //'order_col' 	=> 'id',
//);

/**
 * done!
 */
return $config;
